package org.joychou.util;

public class SqlFilterUtils {
    public static boolean sqlValidate(String str) {
        String str2 = str.toLowerCase();
        String[] badStrs = "'|and|exec|execute|insert|select|delete|update|count|drop|*|%|chr|mid|master|truncate|char|declare|sitename|net user|xp_cmdshell|;|or|+|,|like'|and|exec|execute|insert|create|drop|table|from|grant|use|group_concat|column_name|information_schema.columns|table_schema|union|where|select|delete|update|order|by|count|*|chr|mid|master|truncate|char|declare|or|;|--|+|,|like|//|/|%|#|\"| ".split("\\|");
        for (String str3 : badStrs) {
            if (str2.indexOf(str3) >= 0) {
                return true;
            }
        }
        return false;
    }
}
